package cn.wh.reflection.wrapper;

import cn.wh.reflection.MetaObject;

/**
 * @Author wh
 * @Description
 * @Date 2023/1/30 11:26
 * @Version 1.0
 **/
public class DefaultObjectWrapperFactory implements ObjectWrapperFactory {
    @Override
    public boolean hasWrapperFor(Object object) {
        return false;
    }

    @Override
    public ObjectWrapper getWrapperFor(MetaObject metaObject, Object object) {
        throw new RuntimeException("The DefaultObjectWrapperFactory should never be called to provide an ObjectWrapper.");
    }
}
